/*
 * Copyright © 2017 Cask Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License. You may obtain a copy of
 * the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
 * License for the specific language governing permissions and limitations under
 * the License.
 */

@import '../../../../styles/variables.scss';

$tooltip_arrow_color: rgba(0, 0, 0, 0.2);
$tooltip_arrow_after_color: #eeeeee;

.filter-directive {
  .filter-detail {
    .row-filter-container { margin-bottom: 10px; }

    .filter-condition {
      .condition-select {
        span,
        div {
          display: inline-block;
        }

        span {
          font-weight: 600;
          width: 15px;
        }

        div { width: calc(100% - 15px); }
      }

      .custom-condition-container {
        margin-top: 10px;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      textarea.form-control {
        min-width: 100%;
        max-width: 100%;
        min-height: 40px;
      }
    }

    .row-filter {
      &.active {
        font-weight: 600;
        text-decoration: underline;
      }
    }
    #customConditionTooltip {
      color: $brand-primary;
      cursor: pointer;
    }
  }
}

.popover {
  margin-left: 10px;
  &.filter-popover-element {
    &:before {
      left: -11px;
      margin-top: -11px;
      border-right-color: $tooltip_arrow_color;
      top: 50%;
      border-left-width: 0;
    }
    &:after {
      top: 50%;
      border-left-width: 0;
      left: -10px;
      margin-top: -10px;
      border-right-color: $tooltip_arrow_after_color;
    }
  }
}
